#--------------------------------------
# Global compilation directives
#--------------------------------------
cmake_minimum_required(VERSION 3.1)

include(../common.cmake)

#--------------------------------------
# Compilation options
#--------------------------------------
option(BUILD_TESTS "Build unit tests executables" OFF)

#--------------------------------------
# External dependencies
#--------------------------------------
find_package(Qt5Widgets)
find_package(Qt5Core)
find_package(Qt5Test)

#--------------------------------------
# Target variables
#--------------------------------------
set(ED_CORE_LIBRARY ed-core)
set(ED_CORE_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib/ed-core/include)

set(ED_COMPANION_BINARY ed-companion)

#--------------------------------------
# Subdirectories
#--------------------------------------
add_subdirectory(lib/ed-core)
add_subdirectory(app)
add_subdirectory(doc)
